package com.example.templateapp.ui.foxhome

import android.os.Bundle
import androidx.recyclerview.widget.StaggeredGridLayoutManager
import com.example.templateapp.R
import com.example.templateapp.databinding.ActivityFoxHomeBinding
import com.example.templateapp.ui.adapter.UserCardAdapter
import com.example.templateapp.ui.base.BaseAppCompatActivity

class FoxHomeActivity : BaseAppCompatActivity() {

    private val binding: ActivityFoxHomeBinding by binding(R.layout.activity_fox_home)

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)


        binding.rv.layoutManager =
            StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL)

        val adapter = UserCardAdapter(this)
        binding.rv.adapter = adapter
        adapter.refresh(arrayListOf("", "", "", "", "", "", "", "", ""))


    }
}